package com.flyme.module.base.client.api;

import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import com.flyme.module.base.client.dto.SysCertificateDto;
import com.flyme.module.base.client.entity.SysCertificate;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/certificate/")
public interface SysCertificateRemoteService {

    /**
     * 平台证书列表
     * @return
     */
    @PostMapping("/list")
    ResultBody list(@ModelAttribute(value = "pagerInfo") PagerInfo pagerInfo, SysCertificate certificate);


    /**
     * 编辑平台证书
     * @return
     */
    @PostMapping("/edit")
    ResultBody edit(@ModelAttribute(value = "certificate") SysCertificateDto certificate);

    /**
     * 查询课程
     * @return
     */
    @PostMapping("/selectCourse")
    ResultBody selectCourse(@ModelAttribute(value = "certificate") SysCertificateDto certificate);

    /**
     * 平台证书列表
     * @return
     */
    @PostMapping("/selectList")
    ResultBody selectCertificateList();
}
